home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
273_01
/
xprintf.cc
< prev
Wrap
Text File
|
1988-04-26
|
2KB
|
40 lines
#include <stdarg.h>
#include <stdio.h>
void xprintf(int row, int col,int attr, va_list arg_list, ...)
/*
┌────────────────────────────────────────────────────────────────────┐
│Purpose: Provide for fast formatted output to video screen. │
│ │
│ │
│ │
│ Inputs: row = row to display at. │
│ col = col to display at. │
│ attr = attr to display text with. │
│ va_list = format string and arguments, these are exactly │
│ the same format as printf requires. │
│ │
│Outputs: None │
│ │
│ Return: None │
│ │
│Also see: writef, writef_n, video_type, make_window. │
│ │
│Prototype in: tcutil.h │
└────────────────────────────────────────────────────────────────────┘
*/
{
va_list arg_ptr;
char *format;
char output[161];
va_start(arg_ptr, arg_list);
format = arg_list;
vsprintf(output, format, arg_ptr);
writef(row,col,attr,output);
va_end(arg_ptr);
}